<template>
	<view>
		<logistics v-if="wlInfo.addr" :wlInfo="wlInfo"></logistics>
	</view>
</template>

<script>
	import {getlogisticsInfoApi}  from '@/config/goodApi.js';
	
	import logistics from '@/components/xinyu-logistics/xinyu-logistics.vue'
	export default {
		components: { logistics },
		data() {
			return {
				id:'',
				addr:'',
				wlInfo:{},
			};
		},
		onLoad(e) {
			uni.showLoading({
				
			})
			this.id = e.id
			this.addr = e.addr
			this.getInfo()
		},
		methods:{
			getInfo(){
				getlogisticsInfoApi({
					 id:this.id
				}).then(res=>{
					uni.hideLoading()
					this.wlInfo = res.result
					this.wlInfo.addr = this.addr
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
